//
//  DoomScreenView+Input.h
//  MobileDoom
//
//  Created by Steven Troughton-Smith on 27/07/2008.
//  Copyright 2008 Steven Troughton-Smith. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "iPhoneOSBuild.h"
#import "DoomEvent.h"
#include "HelperFunctions.h"

@interface UIDoomScreenView : UIView  <UIAccelerometerDelegate, UITextInputTraits>
{
	int lastKey;
	
	UIAccelerationValue accelerationX;
    UIAccelerationValue accelerationY;
    UIAccelerationValue accelerationZ;
    NSMutableArray* eventQueue;
	
	int mouseX;
	int mouseY;
}
@end

#define kTransitionDuration	0.75
#define kUpdateFrequency 20  // Hz
#define kFilteringFactor 0.05
#define kNoReadingValue 999